//
//  GroupManagerTableViewCell.m
//  MyYiJianKangApp
//
//  Created by 张国文 on 16/4/15.
//  Copyright © 2016年 hangzhouyijiyin. All rights reserved.
//

#import "GroupManagerTableViewCell.h"

@implementation GroupManagerTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self addMySubview];
    }
    return  self;
}

// 布局
- (void)addMySubview
{
    self.leftImageV = [[UIImageView alloc] initWithFrame:CGRectMake(18 * kAdjustParamater, 16 * kAdjustParamater, 18 * kAdjustParamater, 18 * kAdjustParamater)];
    self.leftImageV.image = [UIImage imageNamed:@"jianhao-fenzuguanli"];
    [self.contentView addSubview:_leftImageV];
    
    self.groupNameLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.leftImageV.right + 8 * kAdjustParamater, 17 * kAdjustParamater, 200 * kAdjustParamater, 15 * kAdjustParamater)];
 //   self.groupNameLabel.backgroundColor = [[UIColor cyanColor] colorWithAlphaComponent:0.1];
    self.groupNameLabel.textColor = [UIColor blackColor];
    self.groupNameLabel.textAlignment = NSTextAlignmentLeft;
    self.groupNameLabel.font = [UIFont systemFontOfSize:k15Big];
    [self.contentView addSubview:_groupNameLabel];
    
    self.rightImageV = [[UIImageView alloc] initWithFrame:CGRectMake((375 - 100) * kAdjustParamater, 11 * kAdjustParamater, 85 * kAdjustParamater, 28 * kAdjustParamater)];
    self.rightImageV.userInteractionEnabled = YES;
    self.rightImageV.image = [UIImage imageNamed:@"youibanbianji-fenzuguali"];
    [self.contentView addSubview:_rightImageV];
    
    self.deleteButton = [UIButton buttonWithType:UIButtonTypeSystem];
    self.deleteButton.frame = CGRectMake(0, 0, 42 * kAdjustParamater, 28 * kAdjustParamater);
    self.deleteButton.backgroundColor = [UIColor clearColor];
    [self.rightImageV addSubview:_deleteButton];
    
    self.editButton = [UIButton buttonWithType:UIButtonTypeSystem];
    self.editButton.frame = CGRectMake(43 * kAdjustParamater, 0, 42 * kAdjustParamater, 28 * kAdjustParamater);
    self.editButton.backgroundColor = [UIColor clearColor];
    [self.rightImageV addSubview:_editButton];
    
    
}


@end
